import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { sync } from 'vuex-router-sync'

import '@/styles/index.scss' // global css
import 'lib-flexible'
// TODO 暂时不需要icon svg
// import './icons' // icon
import './permission' // permission control
import '@/utils/vant'
import '@/utils/jump'
import '@/utils/dzShop'
// 自定义loading
import LoadingWrap from './components/Loading/index'

Vue.use(LoadingWrap)

Vue.prototype.$Bus = new Vue()

Vue.config.productionTip = false

sync(store, router)

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App),
})
